package com.leezhen.microcloud.rest;

import com.leezhen.microcloud.config.InfoConfig;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class InfoClientRest {

    @Resource
    private InfoConfig infoConfig;

    @RequestMapping("/config")
    public String getConfig() {
        return "ApplicationName = " + this.infoConfig.getAppName()
                + "、CompanyName = " + this.infoConfig.getCompanyName()
                + "、CompanyName = " + this.infoConfig.getAppVersion();
    }

}
